#pragma once

#include <d3dx9.h>
#include "ISprite.h"

class SpriteSurface : public ISprite
{
private:
	LPDIRECT3DSURFACE9 surface;
public:

	/* Property */

	LPDIRECT3DSURFACE9 GetSurface() {return this->surface;}

	// Load surface: 0 = OK; 1 = fail
	int LoadResource(void);

	// Create new tiled sprite from file with trans-color
	SpriteSurface(LPWSTR, LPDIRECT3DDEVICE9); 

	SpriteSurface(void);
	~SpriteSurface(void);
};

